<template>
	<view class="container">
		<!-- 顶部状态栏 -->
		<!-- <view class="header">
			<text class="title">微众帮服务资源大厅</text>
		</view> -->
		
		<!-- 数据统计栏 -->
		<view class="stats-bar">
			<text>观览: 3613.3w</text>
			<text>发布: 67956</text>
			<text>会员: 135683</text>
			<text>用户: 143.8w</text>
		</view>
		
		<!-- 广告横幅 -->
		<view class="banner">
			<text>2025年 想挣钱就来</text>
		</view>
		
		<!-- 搜索框 -->
		<view class="search-box">
			<input type="text" placeholder="请输入要找的群、如:上海，或搜宝妈" />
		</view>
		
		<!-- VIP提示框 -->
		<view class="vip-box">
			<text>我们收录了</text>
			<text class="highlight">8341</text>
			<text>个优质群</text>
			<button class="join-btn">我要开通</button>
		</view>
		
		<!-- 分类导航 -->
		<view class="nav-grid">
			<view class="nav-item">
				<view class="nav-icon"></view>
				<text>免费加群</text>
			</view>
			<view class="nav-item">
				<view class="nav-icon"></view>
				<text>点我加群</text>
			</view>
			<view class="nav-item">
				<view class="nav-icon"></view>
				<text>广告位</text>
			</view>
			<view class="nav-item">
				<view class="nav-icon"></view>
				<text>点我加群</text>
			</view>
		</view>
		
		<!-- 群组类型选择 -->
		<view class="group-types">
			<text class="type-item active">全部群</text>
			<text class="type-item">个人群</text>
			<text class="type-item">企业群</text>
		</view>
		
		<!-- 群组列表 -->
		<view class="group-list">
			<view class="group-item">
				<view class="group-avatar"></view>
				<view class="group-info">
					<text class="group-name">深圳帮卖团长交流</text>
					<text class="group-members">185人</text>
				</view>
				<button class="join-group-btn">加群</button>
			</view>
			<!-- 更多群组项... -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		}
	}
</script>

<style>
	.container {
		background-color: #f5f5f5;
		min-height: 100vh;
	}

	.header {
		background-color: #fff;
		padding: 10px 15px;
		text-align: center;
	}

	.title {
		font-size: 16px;
		font-weight: bold;
	}

	.stats-bar {
		background-color: #ff0000;
		color: white;
		padding: 8px 15px;
		display: flex;
		justify-content: space-between;
		font-size: 12px;
	}

	.search-box {
		margin: 10px 15px;
		background: #fff;
		padding: 8px;
		border-radius: 20px;
	}

	.search-box input {
		width: 100%;
		font-size: 14px;
		padding: 5px 10px;
	}

	.vip-box {
		margin: 10px 15px;
		background: #fff3e0;
		padding: 15px;
		border-radius: 10px;
		display: flex;
		align-items: center;
	}

	.highlight {
		color: #ff6b00;
		font-weight: bold;
		margin: 0 5px;
	}

	.join-btn {
		margin-left: auto;
		background: #ff6b00;
		color: white;
		font-size: 14px;
		padding: 5px 15px;
		border-radius: 15px;
	}

	.nav-grid {
		display: flex;
		justify-content: space-around;
		padding: 15px;
		background: #fff;
		margin: 10px 0;
	}

	.nav-item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.nav-item view {
		width: 40px;
		height: 40px;
		margin-bottom: 5px;
		background: #f0f0f0;
		border-radius: 50%;
	}

	.nav-item text {
		font-size: 12px;
	}

	.group-types {
		display: flex;
		padding: 10px 15px;
		background: #fff;
	}

	.type-item {
		margin-right: 20px;
		font-size: 14px;
		color: #666;
	}

	.type-item.active {
		color: #007AFF;
	}

	.group-list {
		background: #fff;
		padding: 0 15px;
	}

	.group-item {
		display: flex;
		align-items: center;
		padding: 15px 0;
		border-bottom: 1px solid #eee;
	}

	.group-avatar {
		width: 40px;
		height: 40px;
		border-radius: 5px;
		margin-right: 10px;
		background: #f0f0f0;
	}

	.group-info {
		flex: 1;
	}

	.group-name {
		font-size: 14px;
	}

	.group-members {
		font-size: 12px;
		color: #999;
	}

	.join-group-btn {
		background: #f0f0f0;
		color: #666;
		font-size: 14px;
		padding: 5px 15px;
		border-radius: 15px;
	}

	.banner {
		height: 120px;
		background: linear-gradient(to right, #FF4B4B, #FF0000);
		margin: 10px 15px;
		border-radius: 8px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		font-size: 18px;
		font-weight: bold;
	}

	.nav-icon {
		width: 40px;
		height: 40px;
		background: #f0f0f0;
		border-radius: 50%;
		margin-bottom: 5px;
	}
</style>
